package com.kexun.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class GenerateOrder {

    public static String generate(String source) {
        String datetime = new SimpleDateFormat("yyMMdd").format(new Date());
        String l = System.currentTimeMillis() + "";
        String s = l.substring(l.length() - 7);
        return source + datetime + s;
    }

    public static void main(String[] args) {
        String ty = generate("TY");
        System.out.println(ty);
    }
}
